namespace KingerRobot.MexicoSailunMDC.Dao;
partial class Db : K8.EF.DbContext
{
    /// <summary>
    /// 生产表 - 物料信息【暂未启用】
    /// </summary>
    public DbSet<POMesMaterial> MesMaterials { get; set; }
}

/// <summary>
/// 生产表 - 物料信息【暂未启用】
/// 表[mes_material]
/// </summary>
[Table("mes_material")]
public class POMesMaterial
{
    /// <summary>
    /// 主键，通过雪花算法生成
    /// 主键[mes_material.objid)]
    /// </summary>
    [Key]
    [Column("objid")]
    public long? Id { get; set; }
    /// <summary>
    /// [mes_material.material_id)]
    /// </summary>
    [Column("material_id")]
    public string MaterialId { get; set; }
    /// <summary>
    /// 物料编号
    /// [mes_material.material_code)]
    /// </summary>
    [Column("material_code")]
    public string MaterialCode { get; set; }
    /// <summary>
    /// 物料名称
    /// [mes_material.material_name)]
    /// </summary>
    [Column("material_name")]
    public string MaterialName { get; set; }
    /// <summary>
    /// [mes_material.material_inch)]
    /// </summary>
    [Column("material_inch", TypeName ="decimal(18,3)")]
    public decimal? MaterialInch { get; set; }
    /// <summary>
    /// [mes_material.outside_diameter)]
    /// </summary>
    [Column("outside_diameter", TypeName ="decimal(18,3)")]
    public decimal? OutsideDiameter { get; set; }
    /// <summary>
    /// [mes_material.inside_diameter)]
    /// </summary>
    [Column("inside_diameter", TypeName ="decimal(18,3)")]
    public decimal? InsideDiameter { get; set; }
    /// <summary>
    /// [mes_material.tire_weight)]
    /// </summary>
    [Column("tire_weight", TypeName ="decimal(18,3)")]
    public decimal? TireWeight { get; set; }
    /// <summary>
    /// [mes_material.wms_flag)]
    /// </summary>
    [Column("wms_flag")]
    public int? WmsFlag { get; set; }
    /// <summary>
    /// [mes_material.expire_time)]
    /// </summary>
    [Column("expire_time")]
    public DateTime? ExpireTime { get; set; }
    /// <summary>
    /// 创建时间
    /// [mes_material.create_time)]
    /// </summary>
    [Column("create_time")]
    public DateTime? CreateTime { get; set; }
    /// <summary>
    /// 更新时间
    /// [mes_material.update_time)]
    /// </summary>
    [Column("update_time")]
    public DateTime? UpdateTime { get; set; }
    /// <summary>
    /// 是否可用 0:不可用  1:在用
    /// [mes_material.use_flag)]
    /// </summary>
    [Column("use_flag")]
    public int? UseFlag { get; set; }
}
